//js中不能创建类
//写在对象中的函数称为方法
var person=new Object();//object 对象数据类型
console.log(typeof person);
var a1= new Array();
console.log(typeof a1);
const a2=new Date();
console.log(typeof a2);
const c1=44;
console.log(a1);
a1.push(12);
console.log(a1);
//通过字面量创建对象
a3={
    username:'张三',
    password:'123456',
    sayHi:function(){
        console.log('你好 ');
    }
}
a3.sayHi();

